<template>
  <div id="moreDetail" class="mytable">
    <el-scrollbar style="height: calc(100% + 17px);">
      <h2 v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='1'">表式一</h2>
      <div v-if="deptMoreeditForm.b0177 && deptMoreeditForm.b0177.danweileixing==='事业'">
        <table cellspacing="0" cellpadding="0" class="bztable" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='1'&&deptMoreeditForm.bianzhiUnitInfo">
          <tr><th rowspan="2" width="100"></th><th colspan="3">编制</th><th colspan="2">领导职数</th><th rowspan="2">内设机构数</th><th colspan="2">内设机构领导职数</th><th rowspan="2">其他人员</th></tr>
          <tr><th>合计</th><th>财政补助</th><th>经费自理</th><th>正职</th><th>副职</th><th>正职</th><th>副职</th></tr>
          <tr>
            <td>批准</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu_caizheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu_zili}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_lingdao_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_lingdao_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_qita}}</td>
          </tr>
          <tr>
            <td>实有</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu_caizheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu_zili}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_lingdao_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_lingdao_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_qita}}</td>
          </tr>
        </table>
        <table cellspacing="0" cellpadding="0" class="bztable" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='2'&&deptMoreeditForm.bianzhiUnitInfo">
          <tr><th rowspan="2" width="100"></th><th colspan="3">编制</th><th colspan="2">领导职数</th><th rowspan="2">其他人员</th></tr>
          <tr><th>合计</th><th>财政补助</th><th>经费自理</th><th>正职</th><th>副职</th></tr>
          <tr>
            <td>批准</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu_caizheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu_zili}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_qita}}</td>
          </tr>
          <tr>
            <td>实有</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu_caizheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu_zili}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_qita}}</td>
          </tr>
        </table>
      </div>
      <div v-else>
        <table cellspacing="0" cellpadding="0" class="bztable" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='1'&&deptMoreeditForm.bianzhiUnitInfo">
          <tr><th rowspan="2" width="100"></th><th rowspan="2">编制</th><th colspan="2">单位领导职数</th><th rowspan="2">内设机构数</th><th colspan="2">内设机构领导职数</th><th rowspan="2">其他人员</th></tr>
          <tr><th>正职</th><th>副职</th><th>正职</th><th>副职</th></tr>
          <tr>
            <td>批准</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_bianzhishu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_lingdao_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_lingdao_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_qita}}</td>
          </tr>
          <tr>
            <td>实有</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_bianzhishu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_lingdao_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_lingdao_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_qita}}</td>
          </tr>
        </table>
        <table cellspacing="0" cellpadding="0" class="bztable" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='2'&&deptMoreeditForm.bianzhiUnitInfo">
          <tr><th rowspan="2" width="100"></th><th rowspan="2">编制</th><th colspan="2">领导职数</th><th rowspan="2">其他人员</th></tr>
          <tr><th>正职</th><th>副职</th></tr>
          <tr>
            <td>批准</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.pi_qita}}</td>
          </tr>
          <tr>
            <td>实有</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigoushu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_zheng}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_neishejigou_fu}}</td>
            <td>{{deptMoreeditForm.bianzhiUnitInfo.shi_qita}}</td>
          </tr>
        </table>
      </div>
      <h2 v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='1'||deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='2'">表式二（应配）</h2>
        <table cellspacing="0" cellpadding="0" class="bztable tableh" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='1'">
          <tr><th>正职领导职数</th><td>{{deptMoreeditForm.b01.b0183}}</td></tr>
          <tr><th>副职领导职数</th><td>{{deptMoreeditForm.b01.b0185}}</td></tr>
          <tr><th>行政编制</th><td>{{deptMoreeditForm.b01.b0227}}</td></tr>
          <tr><th>事业编制（参公）</th><td>{{deptMoreeditForm.b01.b0232}}</td></tr>
          <tr><th>事业编制（其他）</th><td>{{deptMoreeditForm.b01.b0233}}</td></tr>
          <tr><th>工勤编制</th><td>{{deptMoreeditForm.b01.b0236}}</td></tr>
          <tr><th>其他编制</th><td>{{deptMoreeditForm.b01.b0234}}</td></tr>
        </table>
        <table cellspacing="0" cellpadding="0" class="bztable tableh" v-if="deptMoreeditForm.b01&&deptMoreeditForm.b01.b0194==='2'">
          <tr><th>领导职数</th><td>{{deptMoreeditForm.b01.b0150}}</td></tr>
          <tr><th>正职</th><td>{{deptMoreeditForm.b01.b0183}}</td></tr>
          <tr><th>副职</th><td>{{deptMoreeditForm.b01.b0185}}</td></tr>
        </table>
    </el-scrollbar>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    unitInfo: ''
  },
  watch: {
    unitInfo (val) {
      console.log('跟踪信息')
      console.log(val)
      this.deptMoreeditForm = val
    }
    // $refs.tree2.getCurrentNode()
  },
  data () {
    return {
      deptEditswitch: false,
      moreDetailLoading: false,
      deptMoreeditForm: {
      },
      deptMoreEditFormRules: {
      },
      editLoading: false,
      deptMoreEditFormLoading: false,
      hyoptions: [{
        value: '类别1',
        label: '类别1'
      }, {
        value: '类别2',
        label: '类别2'
      }],
      sydwoptions: [{
        value: '类型1',
        label: '类型1'
      }, {
        value: '类型2',
        label: '类型2'
      }]
    }
  },
  methods: {
  },
  mounted () {
  }
}
</script>
<style >
#moreDetail{
  overflow: hidden;
}
.infotable{
  margin:0 20px 20px;
  font-size:14px;
  font-family: '宋体';
  border: 1px solid
}
.tableh th{
  width: 200px
}
.tableh td{
  text-align: left;
  padding-left:40px !important;
}
#moreDetail h2{
  font-size:var(--size16) !important;
  padding-left: 20px;
}
</style>
